//
//  ClubInfoModel.swift
//  77Club
//
//  Created by Apple on 2024/8/27.
//

import Foundation

struct ClubHomeInfoModel:Convertible {

    var code: Int           = 0
    var message: String     = ""
    var data: [ClubHomeInfoItemModel]?
    var banners: [ClubHomeInfoBannerModel]?
}

struct ClubHomeInfoItemModel:Convertible {

    var title = ""
    var id = ""
    var image = ""
    var time = 0
    var time_format = ""
    var zan = ""
    var pinglun = ""
    var look = ""
    var is_zan = 0
    var webview_url = ""
    var is_top = 0
}

//资讯评论
struct ClubInfoCommentListModel: Convertible {
    ///
    var id = ""
    ///
    var uid = ""
    /// 时间
    var time = ""
    /// 评论内容
    var content = ""
    ///
    var pid = ""
    /// 点赞数
    var zan = ""
    ///
    var puid = ""
    ///
    var down: [ClubInfoCommentListModel]?
    
    var user: ClubInfoCommentUserModel?
    
    var is_zan = 0
}

struct ClubInfoCommentUserModel: Convertible {
    ///
    var face = ""
    ///
    var user_name = ""
}

struct ClubGameDetailCommentModel: Convertible {
    var code: Int           = 0
    var message: String     = ""
    var data: [ClubGameDetailCommentListModel]?
    var game: ClubNewHomeGameModel?
}

struct ClubGameDetailCommentListModel: Convertible {
    /// 评论id
    var id = ""
    /// 评论内容
    var content = ""
    /// 状态
    var status = 0
    /// 时间
    var time = ""
    /// 游戏id
    var gid = ""
    /// 用户id
    var uid = ""
    /// 点赞数量
    var zan = ""
    /// 暂时不用 踩的数量
    var cai = ""
    /// 暂时不用
    var jiajing = ""
    /// 被回复的评论id
    var pid = ""
    /// 所在的一级评论（在哪条主评论下面进行的回复））
    var ppid = ""
    /// 暂时不用
    var fujian = ""
    /// 星级
    var point = 0.0
    /// 视频
    var video = ""
    /// 图片
    var images:[String] = []
    /// 该评论用户名
    var user_name = ""
    /// 头像框
    var head_frame = ""
    /// 勋章
    var medal = ""
    /// 炫彩昵称
    var color:[String] = []
    var huiyuan_img = ""
    /// 该评论的用户头像
    var touxiang = ""
    /// 时间段 几小时前 几周前
    var timetran = ""
    /// 该用户是否点赞 1赞  0没有赞
    var is_zan = false
    /// 被回复的用户名
    var beihuifu_user_name = ""
    /// 被回复的用户头像
    var beihuifu_touxiang = ""
    /// 被回复的用户id
    var beihuifu_uid = ""
    /// 该评论下面的回复评论
    var son_list:[ClubGameDetailCommentListModel] = []
    /// 应该是评论条数
    var num = ""
    /// 浏览量
    var look = ""
    /// 发表评论的用户uid
    var uid_des = ""
    
    var is_author = false
    //总的评论数
    var count = ""
}

struct ClubGameDetailCommentDataModel: Convertible {
    /// 评论id
    var data = [ClubGameDetailCommentListModel]()
    //总的评论数
    var count = 0
}


struct ClubReportModel: Convertible {
    ///
    var title = ""
    ///
    var isSel = false
}


struct ClubMoreModel: Convertible {
    ///
    var title = ""
    var img = ""
    var isRed = false
    // 1、置顶帖子 2、取消置顶 3、下架帖子 4、删除帖子
    var type = 0
}

struct ClubGameInfoActiveModel: Convertible {

    var title = ""
    var id = ""
    var image = ""
    var time = ""
    var type = ""
}
